package com.sfac.javaSpringBoot.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
*资源配置文件
 */
@Component
public class ResourceProperties {

    // 映射路径前缀
    @Value("${spring.resource.path}")
    private String path;
    // 映射路径
    @Value("${spring.resource.path.pattern}")
    private String pattern;
    // window 系统绝对路径
    @Value("${spring.resource.folder.windows}")
    private String windowLocation;
    // linux 系统绝对路径
    @Value("${spring.resource.folder.linux}")
    private String LinuxLocation;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getWindowLocation() {
        return windowLocation;
    }

    public void setWindowLocation(String windowLocation) {
        this.windowLocation = windowLocation;
    }

    public String getLinuxLocation() {
        return LinuxLocation;
    }

    public void setLinuxLocation(String linuxLocation) {
        LinuxLocation = linuxLocation;
    }
}
